;(function($){
	$.fn.lavalamp=function(options) {			
		options=$.extend({
			gap:20,														
			easeinel:'easeInOutElastic',				
			ease:''
		},options);
		return this.each(function(){
			var $nav=$(this),					
					$current_item=$(this).find('.focus'),	
					$lava=$('<li class="lava"></li>'),
					reset;	
			$nav.css('position','relative')			
				.find('a').css({										
					position:'relative',
					
					zIndex:1
				});
			
			$lava.css({															
				width:$current_item.outerWidth(),
				height:$current_item.outerHeight()+options.gap,		
				background:'rgb(26,188,156)',
				position:'absolute',
				top:$current_item.position().top-(options.gap/2),	
				left:$current_item.position().left
			}).appendTo($nav.find('ul'));
			$nav.find('li')														
			.bind('mouseover focusin',function(){
				console.log($(this));
				//$(this).children("a").css("color","#FFFFFF");
				$lava.animate({													
					left:$(this).position().left,					
					width:$(this).outerWidth()						
				},{
					duration:400,													
					easing:options.easeinel,														
					queue:false														
				})
			})
			.bind('mouseout focusout',function(){	
				//$(this).children("a").css("color","rgba(0, 0, 0)");
				//setTimeout(function(){									
					$lava.animate({													
						left:$current_item.position().left,		
						width:$current_item.outerWidth()
					},{
						duration:400,
						easing:options.ease,
						queue:false
					}/*,200*/);																
				//},2000);																	
			});
		});		
	};
})(jQuery);
